package com.itheima.test_extends.demo3;

public class GrandFather {
    int age = 66;
}
class Father extends GrandFather{
    int age = 44;
}

class Son extends Father{
    int age = 22;
    public void method(){
        int age = 18;
        System.out.println(age);
        System.out.println(this.age);
        System.out.println(super.age);
        GrandFather g = new GrandFather();
        System.out.println(g.age);
    }
}

